<?php /* Smarty version 2.6.18, created on 2010-08-28 17:13:15
         compiled from admin/alumni/career/index.tpl */ ?>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="<?php echo @APPLICATION_URL; ?>
library/javascript/calendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
<div id="id_content">
	<?php echo $this->_tpl_vars['content_action']; ?>

</div>
<script type="text/javascript">
	var ajax_icon		 		= '<?php echo @AJAX_INDICATOR_ICON; ?>
';
	var xoad_handler = <?php echo $this->_tpl_vars['xoad_handler']; ?>
;
	var g_intPageJob = 1;
	
		
	function deleteCareer(p_intId)
	{
		if ( confirm("Are you sure you want to delete this job?") )  
		{
			callAJAX('xoad_handler', 'deletecareer', $H({career_id: p_intId}), deleteCareer_callBack);	
		}
	}
	var deleteCareer_callBack = function deleteCareer_callBack(results)
	{
		if ( results == "FAIL" )
			alert("Action unsuccessfully");
		else if ( results == "SUCCESS" )
		{
			window.location.href = window.location.href;
			alert("Action successfully");
		}
	}
	
	function checkFrmAddJob(p_strIdFrm)
	{
		/*var frm = xoad.html.exportForm(p_strIdFrm);
		callAJAX('xoad_handler', 'docareer', $H({form: frm}), checkFrmAddJob_callBack);
		return false;*/
	}
	
	function selectExperience(p_intValue)
	{
		if ( p_intValue == 0 )
			document.getElementById("id_experience").style.display = "none";
		else
			document.getElementById("id_experience").style.display = "block";
	}
	function selectSalary(p_strValue)
	{
		if ( p_strValue == "vn" || p_strValue == "usd" )
		{
			document.getElementById("id_salary").style.display = "block";
		}
		else
			document.getElementById("id_salary").style.display = "none";
	}
	function disableHandleForm(frm, flgDisable)
	{
		for (var n=0; n < frm.elements.length; n++) 
			frm.elements[n].disabled = flgDisable;
	}
	
	function backListJob()
	{
		listJob(g_intPageJob);
	}
	
	function listJob(p_intPage)
	{	
		window.location.href = '<?php echo @APPLICATION_URL; ?>
admin/alumni/career/list/' + p_intPage;
		/*g_intPageJob = p_intPage;
		callAJAX('xoad_handler', 'listjob', $H({id: 'id_content', page: p_intPage}), listJob_callBack);*/
	}
</script>